<template>
    <div class="row">
        <el-checkbox v-model="comp.enabled">{{ comp.__classname__ }}</el-checkbox>
        <el-button round size="small" :icon="Document" @click="gm.toConsole(comp)"></el-button>
    </div>

    <div class="row-start">
        <el-text class="span-title" truncated>Opacity</el-text>
        <el-input-number size="small" :controls="false" :step="0.1" :min=0 :max=255 v-model="comp.opacity" />
    </div>
</template>

<script lang="ts" setup>
import { Document } from '@element-plus/icons-vue'
import gm from './gm'

defineProps<{
    comp: CCComponent,
    update: Number,
}>()
</script>